renamed char to key in many places