changed card template condition