add new util functions
add genString function
changes functions and add table