getting error -property cheery of object is not a funtion