updated kde script
removed redundant code