working version of effect -- code cleanup and mobile testing needed