working ssp code