moved main factory
can now insert appointments
added space