fix inc function (it wasn't working after all :) )