fixed a tiny bit of redundant code