added row-wise transformation in c