change atrim to middle