Dynamic generation somewhat working
Dynamic  creation almost working properly