changed function from fmt.Println to fmt.Printf