simplyfing main script