- implementation of method save