removed hard references to height and width