good controls code