added lines to test the required works but we really should extend that and add comments