shuffling code around