updates with correct proptypes