changed tabs to spaces and added messaging format