Ah what the hell? why is this code duplicated ?