scheduled event function built... needs test