trim problem solved