delete irrelavant code