making the code blocks more compact