fixed original error, takes too long to run