create program to run periodically