removes extraneous 'then's from conditionals