adding function for resetting metrics
using del instead of pop
resolved conflict