sinfit offset 0. make freq variable