created assignments and fixed misc. code