fixed incorrect code copy-and-paste