creating main script