try to reduce ram usage whilst running prog on arduino