always put defers as close as possible to the beginning of the block (stylistic thing)