resolves #23 checks for  and  values on create