deleted extra (debug) code from 'main'