bit of code reduction