added nextness for parameter optimisation purposes