added check for increment value