corrected some key errors