updated v_sync but still does not work