added endstate background