formatted the  code