added $ to functions