add width/height checks