passes object in as a param