code style fix - use do/end for multiline blocks