using SpEL to remove some unnecessary code