changed [ ] to [[ ]] to eliminate possible errors