trim redundant code