it works correctly but why i get error...