small code refactor in colony