update type  works