style fix
wrote linear sweep to find function starts in linear.py