added negative logic to width and height