fixed printing bug in get coordinate functions