finished coding mostly everything