fix append function
upd for gtk program
revision