changes to how drawing is detected