is this correct? should x and y be cell indices or world coordinates?