added methods for testing