slight changes to function call