moving part of code