adapts to new Swift Syntax