code reduction and more