add a useful method for testing