remove testcode, fixed typo