added logic to GET checker