Added reverse Function