fixed my horrible mistake