check if key exists  before painting yellow