added coord system and adapted for its use