stripping redundant code