can get elements until greter than 5