set default value on method define