lot's of code repetition with a previous function, could we avoid it? 'toggle'  type function…???