a little element cleanup