managed to succesfully create a callback