output coord correctly