conditional question, took out debugging alerts