issues with getting height and width