added compiler for function and ->