made a more consise script