Removes unnecesary attrs