removed for-loop