row reading function is written