created methods fro defining encryption status