scala compiler says: 'then is now a reserved word; usage as an identifier is deprecated'