add trim prototype