one procedure for prime powers and new dat file