made default a function