added controller sub generator