this should fix the multiple callbacks