make the code even more compact