check in code for domain layer