not working custom callable key function