add documentation for glow function