updates to fucntions