moved saving process to automatic