changing to first fit