i understand what you are trying to do.
i don't follow how you are trying to implement it