added nicks code