adds callback-function