update functionality
fix api