removed uncessarry method. Progress on compunting spectrum