make a test or two
refactor coordinates to longs