require log instead of passing ss as a parameter