formating an code