added utils functions