#66: use scope functions