refactoring istore instruction