removed duplicate apertures code