adding row spec funct