!= null changed to next(), readings are inserted