modified the occur select