deleted one ifeq to much