fixed bugs and output