edits for serializable,and erros removal