started work on trends.c