added footer for spacing
cleaned up code