removing erronious func refrence