import error in logic functions