add profiler, new prime method