simplified coordinate and offset calcualtions