simple, without refactoring yet
refactored, because realised that a boolean value is passed as an argument