removed screenshot code