useless refs were removed