added new function for create rows