elem can only be move forward up to k steps