improve code clarity and syntax