revised code format