changing my relastates link and fixing variable name