revise getRect to use a boolean parameter, which determines coordinate system