add code to detect pure function