added geotype check