Try to explain again what you're trying to achieve; perhaps with example input/output.