fix it with a for-loop