i need error checking on the resize & move functionality, when I add error checking everything breaks.