clean attributes