made key variable boolean