improved trim performance a little (closes #599)