fix anonymousy func