clarified code