changed spam_flag model