removed for-loop for keys