initialie if defined doesnt work