worked on $ gen