simpilfy dependency block in pyside