added cut macro to core