deleted useless code
implemented max 3 digits in Rajat's window