starting misc functions