started working on sub generator