fixed copy-pasted code