Similified code