update for the new Swift syntax