rewrote first part