updating the main script