changed only one the for-loop back