old implementation of ippnar