added hooks