added support for destructured syntax in functions parameters