more than one function can be registerd