changed some lines added some prerequirements