Was almost there... missed an if statement