cleaning up
bug fix on wrong flag