use default keyword to get rid of compiler warning of not returning a value in a non-void function