added a mutating function