changed object to a parameter