adding hooks, but seems not working :P