Begon on checking for typeErrors