avoid nil positions