working till type checking