started adding control structures