and there is a bug in the if statement, misplaced `)`, thanks kitteh