closure formatting