added comments and cleaned the looked up