remove reset to avoid passing by reference