added within(),getPosition(),disallowed resize