merged stuff together need to get setAttribute tests passing