odd memory behaviour, this repo is for understanding