working on the main script