removes extra code