refactored equal interval
added standard deviation