Changed one call of std to make all calls std(XX,1)