updated the func of class