fixed to show result correctly