streamlining the skip_list function a little