implement selection mechanism but coordinate system is screwed up