direct mapping as function instead of static reference