needed to only fit input data