now saving works fine