fixed output and function name