making spectrum plots works