figure generator added