best code ever. no regrets.