working with end scene