more functions created to facilitate debug and photo making