fixing explain query call