testing conditionals

stuck with key error