checks added to constructor