added cronJob functions