added interlogic.c