finished up on algorithm for having read posts