updated function compiler for sholan