added check for increment argument