a solution without using ssite_t