removed function call that is called twice