changing the console method to be static