working on row.names after apply