fixed calcDisplay