working like all scripts