deleted a function that was called twice