fix method to store user specified fields