plz functions moged to class