changing from using options to function args