adding conditions so the helper classes are not redefined