updating sPost class