code cleanup
fixed error with data transformation using rbms/grbms
code cleanup