add assertion for id