switch from import to functions