sample formatting
shortened some code