updated for the push notification functions