simplified testing code