adding to pooltest code