correct wrong functions calls.