added sketch and clear functions