add NA handling in leading zeros
added better sleep