old code experimenting with iOS / magic eye