added directions. removed worthless variables.