fixed some compiler errors because of passing the wrong arguments