fixed placement of curly braces. tests now pass.