updated errors; fixed last plot as nullAfter