replacing the first 3 lines that were giving error but its not related to E1476