started on gallery code