fixing couts
fixing sequence