added 'then' keyword