cleaned up col 80 limit violations. added functions