added standard error calculation and output