added inline function. still untested. probably wont work. lol