added 1st pass at determining trend