fixed unnecessary statements