functions were added for proper formatting.