selecting if/loop possible