removing redundant instrument code