refactored first-time-run procedure to be more compliant with coding
convetions