what if key error ? not pythonic here