now taking subject into account for calculating the stdv

fixes #9