corrected optional dependency