simplified setting of code body : null handling