updated main.c and setUserConditions.s