for testing hooks