key reference func added