solving this crap