revised code applied