added a method for testing