corrected potential error