using coordinates instead of widths and heights