DATA STRUCTURE CHECK ADDED