storage files handling pseudocode