fixed the coding style to implicitly return undefined