made it shorter

deleted some redundant lines
had to input a new variable though; fc
pretty sure i made some errors though :p