add cal check for empty
add cal is empty message and debug statements