added check for creating weeks