working on control structs