clean up coordinates code