added std calculation