added logic for appears on