trim action code
set margin to 40