added new files and rewrote poly