initial attempt at 'trim'