now working with first fit and best fit