remove unecessary :only attributes