error on mis-calculation tested and finished