change default optional value in getKey() from false to 0