rewrite with inc instead of add 1