move elements to for
Merge branch 'master' into dev

Conflicts:
	main.cpp