again removed second function for reversing since it was totally wrong...