bugfix&printing