changed coordinate constructor