Title: Galaxy types, luminosity functions and environment in the Sloan digital sky survey