more efficient prime and new files