removed for-loop initial declarations