Well actually yes it works.. the error was the "bar". It should have been just bar.