tested working for nullable and first