getting rid of conditions using '\0'