debugged working version for drm_frequency = 50