fixing comiple error
passing around fun-defns