use coderef on default values for better compatibility