refactored main script