added method fit
tested fot fit method