added nullable userid