removed const from function parameter