fixed error with double "[[" - changed to "["