replace => with normal function