fixed error relating to number of arguments