added function spMedia